-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/ipfs-lib-migration #15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after yarn apply-version you should run yarn build -> to build web-types for ui and toasts libraries
CHANGELOG.md
Outdated
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. | |||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | |||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | |||
|
|||
## [0.0.0-rc.19] - 2023-08-15 | |||
### Changed | |||
- `@tokene/toolkit` - `IpfsUtil` class now is using `kubo-rpc-client` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replaced ipfs-http-client
by kubo-rpc-client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
import { toolkitConfig } from '@/globals' | ||
|
||
const PREFIX = 'ipfs://' | ||
|
||
export class IpfsUtil<T> { | ||
private _rawData?: T | ||
private _path?: string | ||
private _paths = [] as string[] | ||
private _cid?: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id add
and addAll
returns path, should we use this.path
instead of cid
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we can rename getters because we return a cid paths, but in class we're using cids, not cid paths.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
No description provided.